<?php
require '../config.php';
?>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
		<meta name="author" content="www.frebsite.nl" />
		<meta name="viewport" content="width=device-width initial-scale=1.0 maximum-scale=1.0 user-scalable=yes" />
		<meta name="robots" content="noindex, nofollow" />
		<title>留言板 - 后台管理系统</title>
        <link rel="stylesheet" href="../public/css/docs.css" />
</head>
<body>
<div id="page">
   <div id="header">留言板 - 后台管理系统<a href="#" class="right" id="out"></a></div>  
   <div id="content">
        <div id="articlebox">
			        <p><a href="#" id="goback" style="text-decoration:none;font-weight:bold;color:#1d953f;font-size:12px;"><< 返回</a></p>
					<h1> + 留言板</h1>	
                    <?php
                         $result = mysql_query("select * from message order by id desc");
	                     while($row = mysql_fetch_array($result)){
                            echo '<div class="msgbox">';
							echo '<p>邮箱：'.$row['email'].' <span class="date">( '.$row['addDate'].' )</span></p>';
							echo '<p>内容：'.$row['matter'].'</p>';
							echo '</div>';
	                     }
	                ?>
			        
        </div>	
   </div>
</div>
<script type="text/javascript" src="../public/js/jquery-1.11.0.min.js"></script>
<script>
$(function(){
	$('#out').bind('click',function(){
		if(confirm('确认离开?')){
            window.location.href = '../index.php';
		}else{
            return;
		}
	});
	$('#show_menu').bind('click',function(){
           $(this).children('div#menu').slideToggle();
	});
	$('#goback').bind('click',function(){
		   window.location.href = 'func.php';
	});
})
</script>
</body>
</html>
